aux_source_directory(${CMAKE_CURRENT_LIST_DIR}/src src_list)

include_directories(
  .
  src/
)

add_executable(modbus_main
  modbus_main.c
  ../IPC/socket_ipc/ipc_socket.c
  ${src_list}
)

add_executable(modbus_master
  modbus_master.c
  ../IPC/socket_ipc/ipc_socket.c
  ${src_list}
)

target_link_libraries(modbus_main
  pthread
)

target_link_libraries(modbus_master
  pthread
)
add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/tests)